package cn.micai.base.concurrent;

/**
 * @author zhaoxinguo on 2018/5/14.
 * @email sxdtzhaoxinguo@163.com
 * @qq 827358369
 * @phone 18611966723
 * @description 内部锁
 */
public class SynchronizedBenchmarkDemo implements Counter {

    private long count = 0;

    @Override
    public long getValue() {
        return count;
    }

    @Override
    public synchronized void increment() {
        count++;
    }
}
